html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
}
/* 滚动槽 */
::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track {
  border-radius: 3px !important;
  background: rgba(24, 144, 255, 0.3) !important;
  -webkit-box-shadow: inset 0 0 5px rgba(24, 144, 255, 0.3) !important;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 3px !important;
  background: rgba(24, 144, 255, 1) !important;
  -webkit-box-shadow: inset 0 0 10px rgba(24, 144, 255, 1) !important;
  cursor: pointer !important;
}
//表格列头调整列宽手柄
.react-resizable-handle{
  top: 0px;
  right: -10px;
  height: 100% !important;
  padding: 0px !important;
  z-index: 500;
  cursor: col-resize;
}
//表格滚动条
.ant-table{
  scrollbar-color: inherit !important; 
}
//设置表格头部禁止选中
.ant-table-thead{
  user-select: none;
}

//设置全局背景图
// .ant-pro-layout-bg-list {
//   background-image: url("../public/images/backgroundbig.png") !important;
// }
//设置菜单栏图标
.ant-pro-base-menu-inline-icon {
  width: 30px;
}

.ant-pro-base-menu-vertical-icon {
  width: 30px;
}

.ant-pro-base-menu-vertical-item-icon {
  width: 30px !important;
  height: 30px !important;
}

//设置logo大小
.ant-pro-global-header-logo img {
  height: 45px !important;
  margin-left: 50px;
}

//设置表头分割线
.ant-table-cell::before{
  width: 1.5px !important;
  height:100% !important;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: 768px) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}


/*菜单栏字号*/
.ant-pro-base-menu-inline-item-text{
  font-size: 14px;
}

.ant-form-item-label > label {
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.2; /* 可以控制行距 */
}

/* 只让表头居中 */
.custom-table .ant-table-thead > tr > th {
  text-align: center !important;
}

/* 让内容单元格左对齐 */
.custom-table .ant-table-tbody > tr > td {
  text-align: left !important;
}

/* 表头全部居中 */
.custom-table1 .ant-table-thead > tr > th {
  text-align: center !important;
}

/* 第一列内容居中 */
.custom-table1 .ant-table-tbody > tr > td:first-child {
  text-align: center !important;
}

/* 其他列左对齐 */
.custom-table1 .ant-table-tbody > tr > td:not(:first-child) {
  text-align: left !important;
}

.custom-quill-editor .ql-container {
  min-height: 250px;  /* 控制整体编辑区高度 */
}

.custom-quill-editor .ql-editor {
  min-height: 250px;  /* 实际输入区域高度 */
  max-height: 400px;
  overflow-y: auto;   /* 超出可滚动 */
  line-height: 1.6;
  font-size: 14px;
  padding-bottom: 20px;
}

// 在 CSS 文件中
.custom-readonly-input.ant-input[disabled] {
  background-color: #fff;
  color: rgba(0, 0, 0, 0.85);
  cursor: text;
  border-color: #d9d9d9;
}

.custom-readonly-input.ant-input[readonly]:hover {
  border-color: #40a9ff;
}

// 在 CSS 文件中
.custom-readonly-select.ant-select-disabled .ant-select-selector {
  background-color: #fff !important;
  color: rgba(0, 0, 0, 0.85) !important;
  cursor: text !important;
  border-color: #d9d9d9 !important;
}

.custom-readonly-select.ant-select-disabled .ant-select-arrow {
  display: none !important;
}
